//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.Collections;
			using System.ComponentModel;
			using System.Data.Common;
			using System.Data;
			using System.Data.SqlClient;
			using System.Drawing;
			using System;
			using System.Resources;
			using System.Text.RegularExpressions;
			using System.Windows.Forms;
			using Utility;
			
		#endregion
		
	public class frmCapNhatNhanVien : Form
	
	{
		
		#region Fields
			private Button btThem;
			private Button btThoat;
			private Button button1;
			private ComboBox cbChucVu;
			private Container components;
			private string connStr;
			private DataGrid dataGrid1;
			private DataGrid dataGrid2;
			private Database_Com db;
			private DateTimePicker dtpBirthDay;
			public int flag;
			private GroupBox groupBox1;
			private GroupBox groupBox2;
			private Label label1;
			private Label label10;
			private Label label11;
			private Label label12;
			private Label label13;
			private Label label14;
			private Label label15;
			private Label label2;
			private Label label3;
			private Label label4;
			private Label label5;
			private Label label6;
			private Label label7;
			private Label label8;
			private Label label9;
			private RadioButton rbAll;
			private RadioButton rbFemale;
			private RadioButton rbFullName;
			private RadioButton rbID;
			private RadioButton rbMale;
			private TextBox tbAddress;
			private TextBox tbAge;
			private TextBox tbChuyenMon;
			private TextBox tbDiDong;
			private TextBox tbEmail;
			private TextBox tbFullName;
			private TextBox tbID;
			private TextBox tbKeySearch;
			private DataGridTableStyle TblStyle;
			private TextBox tbPhone;
		#endregion
		
		#region Constructors
		
			public frmCapNhatNhanVien ()
			
			{
				this.components = ((System.ComponentModel.Container) null);
				this.db = new Database_Com ();
				this.flag = 1;
				this.InitializeComponent ();
				this.connStr = Connection.ConnectionString ();
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void btThem_Click (object sender, EventArgs e)
			
			{
				string theString;
				string theString2;
				string theString3;
				Exception theException;
				string[] theStringArray;
				SqlDbType[] theSqlDbTypeArray;
				object[] theObjectArray;
				if (this.tbFullName.Text != "")
				{
					goto L_002F;
				}
				DialogResult theDialogResult = MessageBox.Show ("Vui l?ng t?n nh?n vi?n!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_002F:
				
				{
				}
				if (this.tbAge.Text != "")
				{
					goto L_005E;
				}
				DialogResult theDialogResult2 = MessageBox.Show ("Vui l?ng nh?p ng?y sinh!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_005E:
				
				{
				}
				if (Convert.ToInt64 (this.tbAge.Text.ToString ()) >= ((long) 0))
				{
					goto L_00A9;
				}
				if (Convert.ToInt64 (this.tbAge.Text.ToString ()) <= ((long) 120))
				{
					goto L_00A9;
				}
				DialogResult theDialogResult3 = MessageBox.Show ("Ng?y sinh kh?ng h?p l?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_00A9:
				
				{
				}
				if (this.cbChucVu.Text != "")
				{
					goto L_00D8;
				}
				DialogResult theDialogResult4 = MessageBox.Show ("Vui l?ng ch?n ch?c v?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_00D8:
				
				{
				}
				if (this.tbChuyenMon.Text != "")
				{
					goto L_0107;
				}
				DialogResult theDialogResult5 = MessageBox.Show ("Vui l?ng nh?p chuy?n m?n!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_0107:
				
				{
				}
				if (this.tbAddress.Text != "")
				{
					goto L_0136;
				}
				DialogResult theDialogResult6 = MessageBox.Show ("Vui l?ng nh?p ??a ch?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_0136:
				
				{
				}
				if (this.tbPhone.Text.Length <= 0)
				{
					goto L_0179;
				}
				if (this.IsNumber (this.tbPhone.Text.ToString ()))
				{
					goto L_0179;
				}
				DialogResult theDialogResult7 = MessageBox.Show ("S? ?i?n tho?i kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_0179:
				
				{
				}
				if (this.tbDiDong.Text.Length <= 0)
				{
					goto L_01BC;
				}
				if (this.IsNumber (this.tbDiDong.Text.ToString ()))
				{
					goto L_01BC;
				}
				DialogResult theDialogResult8 = MessageBox.Show ("S? ?i?n tho?i di ??ng kh?ng h?p l?", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_01BC:
				
				{
				}
				if (this.tbEmail.Text.Length <= 0)
				{
					goto L_01FE;
				}
				if (Regex.IsMatch (this.tbEmail.Text, "^([\\w-]+\\.)*?[\\w-]+@[\\w-]+\\.([\\w-]+\\.)*?[\\w]+$"))
				{
					goto L_01FE;
				}
				DialogResult theDialogResult9 = MessageBox.Show ("??a ch? E-Mail kh?ng h?p l?!", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_048F;
				
			L_01FE:
				
				{
				}
				theString2 = this.tbDiDong.Text;
				theString3 = this.tbEmail.Text;
				if (! this.rbMale.Checked)
				{
					goto L_022B;
				}
				theString = "Nam";
				goto L_0231;
				
			L_022B:
				
				{
				}
				theString = "N?";
				
			L_0231:
				try
				{
					this.dtpBirthDay.CustomFormat = "MM/dd/yyyy";
					SqlConnection theSqlConnection = this.db.CreateConnections ();
					theStringArray = new string[11];
					theStringArray[0] = "@empID";
					theStringArray[1] = "@empName";
					theStringArray[2] = "@empBirthDate";
					theStringArray[3] = "@empAge";
					theStringArray[4] = "@empSex";
					theStringArray[5] = "@empPosition";
					theStringArray[6] = "@empSpecialize";
					theStringArray[7] = "@empAddress";
					theStringArray[8] = "@empTel";
					theStringArray[9] = "@empMobile";
					theStringArray[10] = "@empEmail";
					theSqlDbTypeArray = new SqlDbType[11];
					theSqlDbTypeArray[0] = SqlDbType.VarChar;
					theSqlDbTypeArray[1] = SqlDbType.NVarChar;
					theSqlDbTypeArray[2] = SqlDbType.DateTime;
					theSqlDbTypeArray[3] = SqlDbType.TinyInt;
					theSqlDbTypeArray[4] = SqlDbType.NVarChar;
					theSqlDbTypeArray[5] = SqlDbType.NVarChar;
					theSqlDbTypeArray[6] = SqlDbType.NVarChar;
					theSqlDbTypeArray[7] = SqlDbType.NVarChar;
					theSqlDbTypeArray[8] = SqlDbType.NVarChar;
					theSqlDbTypeArray[9] = SqlDbType.NVarChar;
					theSqlDbTypeArray[10] = SqlDbType.NVarChar;
					theObjectArray = new object[11];
					theObjectArray[0] = this.tbID.Text;
					theObjectArray[1] = this.tbFullName.Text;
					theObjectArray[2] = this.dtpBirthDay.Text;
					theObjectArray[3] = this.tbAge.Text;
					theObjectArray[4] = theString;
					theObjectArray[5] = this.cbChucVu.Text;
					theObjectArray[6] = this.tbChuyenMon.Text;
					theObjectArray[7] = this.tbAddress.Text;
					theObjectArray[8] = this.tbPhone.Text;
					theObjectArray[9] = theString2;
					theObjectArray[10] = theString3;
					this.db.ExecuteStoredProc ("sp_Employees_Update", theStringArray, theSqlDbTypeArray, theObjectArray);
					this.frmCapNhatNhanVien_Load (sender, e);
					DialogResult theDialogResult10 = MessageBox.Show ("C?p nh?t th?nh c?ng!", "C?p nh?t th?nh c?ng!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.tbID.Text = "";
					this.tbFullName.Text = "";
					this.tbAge.Text = "";
					this.tbChuyenMon.Text = "";
					this.tbAddress.Text = "";
					this.tbPhone.Text = "";
					this.tbDiDong.Text = "";
					this.tbEmail.Text = "";
					this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
					this.btThem.Enabled = false;
					this.dataGrid1.Visible = true;
					this.dataGrid2.Visible = false;
				}
				catch (Exception theException2)
				{
					
				L_0480:
					theException = theException2;
					DialogResult theDialogResult11 = MessageBox.Show (theException.Message);
				}
				
			L_048F:
				return;
			}
			
			private void btThoat_Click (object sender, EventArgs e)
			
			{
				base.Close ();
				return;
			}
			
			private void button1_Click (object sender, EventArgs e)
			
			{
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				ArrayList theArrayList;
				int i;
				string theString;
				DataSet theDataSet2;
				ArrayList theArrayList2;
				int i2;
				string theString2;
				string[] theStringArray;
				char[] theCharArray;
				int i3;
				string[] theStringArray2;
				string[] theStringArray3;
				char[] theCharArray2;
				int i4;
				string[] theStringArray4;
				this.dataGrid1.Visible = true;
				this.dataGrid2.Visible = false;
				if (! this.rbAll.Checked)
				{
					goto L_0032;
				}
				this.frmCapNhatNhanVien_Load (sender, e);
				goto L_0504;
				
			L_0032:
				
				{
				}
				if (this.tbKeySearch.Text != "")
				{
					goto L_0061;
				}
				DialogResult theDialogResult = MessageBox.Show ("Vui l?ng nh?p t? kho? t?m ki?m!", "L?i t?m ki?m", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				goto L_0504;
				
			L_0061:
				
				{
				}
				theSqlConnection = new SqlConnection (this.connStr);
				if (! this.rbFullName.Checked)
				{
					goto L_02BD;
				}
				SqlConnection theSqlConnection2 = this.db.CreateConnections ();
				theDataSet = new DataSet ();
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT * FROM Employees WHERE empName like N\'%", this.tbKeySearch.Text.Trim (), "%\'"), theSqlConnection);
				int i5 = theSqlDataAdapter.Fill (theDataSet, "Employees");
				theSqlDataAdapter.Dispose ();
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_011D;
				}
				
			L_00F0:
				
				{
				}
				DialogResult theDialogResult2 = MessageBox.Show (string.Concat ("Kh?ng t?m th?y nh?n vi?n: ", this.tbKeySearch.Text.ToString ()), "", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				goto L_02BD;
				
			L_011D:
				
				{
				}
				this.dataGrid1.Visible = false;
				this.dataGrid2.Visible = true;
				this.dataGrid2.CaptionText = "Danh S?ch Nh?n Vi?n";
				this.dataGrid2.DataSource = theDataSet;
				this.dataGrid2.SetDataBinding (theDataSet, "Employees");
				this.dataGrid2.TableStyles.Clear ();
				this.loadDataGrid ();
				int i6 = this.dataGrid2.TableStyles.Add (this.TblStyle);
				this.dataGrid2.ReadOnly = true;
				theArrayList = new ArrayList ();
				i = 0;
				goto L_029B;
				
			L_01A9:
				
				{
				}
				theCharArray = new char[1];
				theCharArray[0] = '\u002F';
				theStringArray = theDataSet.Tables[0].Rows[i][3].ToString ().Split (theCharArray);
				i3 = 0;
				goto L_01FE;
				
			L_01E8:
				
				{
				}
				theString = theStringArray[i3];
				int i7 = theArrayList.Add (theString);
				i3++;
				
			L_01FE:
				
				{
				}
				if (i3 < theStringArray.Length)
				{
					goto L_01E8;
				}
				theStringArray2 = new string[5];
				theStringArray2[0] = theArrayList[1].ToString ();
				theStringArray2[1] = "/";
				theStringArray2[2] = theArrayList[0].ToString ();
				theStringArray2[3] = "/";
				theStringArray2[4] = theArrayList[2].ToString ().Remove (4, ((int) (theArrayList[2].ToString ().Length - 4)));
				theDataSet.Tables[0].Rows[i][10] = string.Concat (theStringArray2);
				theArrayList.Clear ();
				i++;
				
			L_029B:
				
				{
				}
				if (i < theDataSet.Tables[0].Rows.Count)
				{
					goto L_01A9;
				}
				goto L_0504;
				
			L_02BD:
				
				{
				}
				if (! this.rbID.Checked)
				{
					goto L_0504;
				}
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT * FROM Employees WHERE empID=\'", this.tbKeySearch.Text, "\'"), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i8 = theSqlDataAdapter.Fill (theDataSet2, "Employees");
				if ((theDataSet2 != null) && ((theDataSet2.Tables.Count != 0) && (theDataSet2.Tables[0].Rows.Count != 0)))
				{
					goto L_035B;
				}
				
			L_032E:
				
				{
				}
				DialogResult theDialogResult3 = MessageBox.Show (string.Concat ("Kh?ng t?m th?y nh?n vi?n: ", this.tbKeySearch.Text.ToString ()), "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_0504;
				
			L_035B:
				
				{
				}
				this.dataGrid1.Visible = false;
				this.dataGrid2.Visible = true;
				this.dataGrid2.CaptionText = "Danh S?ch Nh?n Vi?n";
				this.dataGrid2.DataSource = theDataSet2;
				this.dataGrid2.SetDataBinding (theDataSet2, "Employees");
				this.dataGrid2.TableStyles.Clear ();
				this.loadDataGrid ();
				int i9 = this.dataGrid2.TableStyles.Add (this.TblStyle);
				this.dataGrid2.ReadOnly = true;
				theArrayList2 = new ArrayList ();
				i2 = 0;
				goto L_04E4;
				
			L_03EA:
				
				{
				}
				theCharArray2 = new char[1];
				theCharArray2[0] = '\u002F';
				theStringArray3 = theDataSet2.Tables[0].Rows[i2][3].ToString ().Split (theCharArray2);
				i4 = 0;
				goto L_0441;
				
			L_042A:
				
				{
				}
				theString2 = theStringArray3[i4];
				int i10 = theArrayList2.Add (theString2);
				i4++;
				
			L_0441:
				
				{
				}
				if (i4 < theStringArray3.Length)
				{
					goto L_042A;
				}
				theStringArray4 = new string[5];
				theStringArray4[0] = theArrayList2[1].ToString ();
				theStringArray4[1] = "/";
				theStringArray4[2] = theArrayList2[0].ToString ();
				theStringArray4[3] = "/";
				theStringArray4[4] = theArrayList2[2].ToString ().Remove (4, ((int) (theArrayList2[2].ToString ().Length - 4)));
				theDataSet2.Tables[0].Rows[i2][10] = string.Concat (theStringArray4);
				theArrayList2.Clear ();
				i2++;
				
			L_04E4:
				
				{
				}
				if (i2 < theDataSet2.Tables[0].Rows.Count)
				{
					goto L_03EA;
				}
				goto L_0504;
				
			L_0504:
				return;
			}
			
			private void dataGrid1_MouseUp (object sender, MouseEventArgs e)
			
			{
				DataGrid.HitTestInfo theHitTestInfo;
				SqlConnection theSqlConnection;
				DataSet theDataSet;
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet2;
				DataTable theDataTable;
				if (this.dataGrid1.DataSource == null)
				{
					goto L_037C;
				}
				
			L_0012:
				
				{
				}
				if (e.Button != MouseButtons.Left)
				{
					goto L_037C;
				}
				theHitTestInfo = this.dataGrid1.HitTest (e.X, e.Y);
				if (theHitTestInfo.Type != System.Windows.Forms.DataGrid.HitTestType.Cell)
				{
					goto L_037C;
				}
				this.dataGrid1.Select (theHitTestInfo.Row);
				
			L_0057:
				try
				{
					theSqlConnection = new SqlConnection (this.connStr);
					theDataSet = ((DataSet) this.dataGrid1.DataSource);
					if (theDataSet != null)
					{
						goto L_007C;
					}
					goto L_037C;
					
				L_007C:
					
					{
					}
					theString = theDataSet.Tables[0].Rows[theHitTestInfo.Row][1].ToString ();
					theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT * FROM Employees WHERE empID=\'", theString, "\'"), theSqlConnection);
					theDataSet2 = new DataSet ();
					int i = theSqlDataAdapter.Fill (theDataSet2, "Employees");
					theDataTable = theDataSet2.Tables["Employees"];
					this.tbID.Text = theString;
					this.tbFullName.Text = theDataTable.Rows[0][2].ToString ();
					this.dtpBirthDay.Text = theDataTable.Rows[0]["empBirthDate"].ToString ();
					this.tbAge.Text = theDataTable.Rows[0][4].ToString ();
					if (theDataTable.Rows[0]["empSex"].ToString () != "Nam")
					{
						goto L_0194;
					}
					this.rbMale.Checked = true;
					goto L_01A0;
					
				L_0194:
					
					{
					}
					this.rbFemale.Checked = true;
					
				L_01A0:
					
					{
					}
					this.tbAddress.Text = theDataTable.Rows[0]["empAddress"].ToString ();
					this.tbPhone.Text = theDataTable.Rows[0]["empTel"].ToString ();
					this.tbDiDong.Text = theDataTable.Rows[0]["empMobile"].ToString ();
					this.tbChuyenMon.Text = theDataTable.Rows[0]["empSpecialize"].ToString ();
					if (theDataTable.Rows[0]["empEmail"].ToString () != "NULL")
					{
						goto L_0276;
					}
					this.tbEmail.Text = "";
					goto L_029D;
					
				L_0276:
					
					{
					}
					this.tbEmail.Text = theDataTable.Rows[0]["empEmail"].ToString ();
					
				L_029D:
					
					{
					}
					if (theDataTable.Rows[0]["empPosition"].ToString () != "Tr??ng Ph?ng Kh?m")
					{
						goto L_02D3;
					}
					this.cbChucVu.SelectedIndex = 0;
					goto L_034B;
					
				L_02D3:
					
					{
					}
					if (theDataTable.Rows[0]["empPosition"].ToString () != "B?c S?")
					{
						goto L_0309;
					}
					this.cbChucVu.SelectedIndex = 1;
					goto L_034B;
					
				L_0309:
					
					{
					}
					if (theDataTable.Rows[0]["empPosition"].ToString () != "Y T?")
					{
						goto L_033F;
					}
					this.cbChucVu.SelectedIndex = 2;
					goto L_034B;
					
				L_033F:
					
					{
					}
					this.cbChucVu.SelectedIndex = 3;
					
				L_034B:
					
					{
					}
					this.btThem.Enabled = true;
					theSqlDataAdapter.Dispose ();
					theSqlConnection.Close ();
				}
				catch
				{
					
				L_0366:
					
					{
					}
					DialogResult theDialogResult = MessageBox.Show ("Ch?a c? d? li?u", "Ch?a C? D? Li?u", MessageBoxButtons.OK, MessageBoxIcon.Hand);
				}
				
			L_037C:
				return;
			}
			
			private void dataGrid2_MouseUp (object sender, MouseEventArgs e)
			
			{
				DataGrid.HitTestInfo theHitTestInfo;
				SqlConnection theSqlConnection;
				DataSet theDataSet;
				string theString;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet2;
				DataTable theDataTable;
				if (this.dataGrid2.DataSource == null)
				{
					goto L_032A;
				}
				
			L_0012:
				
				{
				}
				if (e.Button != MouseButtons.Left)
				{
					goto L_032A;
				}
				theHitTestInfo = this.dataGrid2.HitTest (e.X, e.Y);
				if (theHitTestInfo.Type != System.Windows.Forms.DataGrid.HitTestType.Cell)
				{
					goto L_032A;
				}
				this.dataGrid2.Select (theHitTestInfo.Row);
				theSqlConnection = new SqlConnection (this.connStr);
				theDataSet = ((DataSet) this.dataGrid2.DataSource);
				if (theDataSet == null)
				{
					goto L_032A;
				}
				
			L_007C:
				
				{
				}
				theString = theDataSet.Tables[0].Rows[theHitTestInfo.Row][1].ToString ();
				theSqlDataAdapter = new SqlDataAdapter (string.Concat ("SELECT * FROM Employees WHERE empID=\'", theString, "\'"), theSqlConnection);
				theDataSet2 = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet2, "Employees");
				theDataTable = theDataSet2.Tables["Employees"];
				this.tbID.Text = theString;
				this.tbFullName.Text = theDataTable.Rows[0][2].ToString ();
				this.dtpBirthDay.Text = theDataTable.Rows[0]["empBirthDate"].ToString ();
				this.tbAge.Text = theDataTable.Rows[0][4].ToString ();
				if (theDataTable.Rows[0]["empSex"].ToString () != "Nam")
				{
					goto L_0194;
				}
				this.rbMale.Checked = true;
				goto L_01A0;
				
			L_0194:
				
				{
				}
				this.rbFemale.Checked = true;
				
			L_01A0:
				
				{
				}
				this.tbAddress.Text = theDataTable.Rows[0]["empAddress"].ToString ();
				this.tbPhone.Text = theDataTable.Rows[0]["empTel"].ToString ();
				this.tbDiDong.Text = theDataTable.Rows[0]["empMobile"].ToString ();
				this.tbChuyenMon.Text = theDataTable.Rows[0]["empSpecialize"].ToString ();
				this.tbEmail.Text = theDataTable.Rows[0]["empEmail"].ToString ();
				if (theDataTable.Rows[0]["empPosition"].ToString () != "Tr??ng Ph?ng Kh?m")
				{
					goto L_0299;
				}
				this.cbChucVu.SelectedIndex = 0;
				goto L_0311;
				
			L_0299:
				
				{
				}
				if (theDataTable.Rows[0]["empPosition"].ToString () != "B?c S?")
				{
					goto L_02CF;
				}
				this.cbChucVu.SelectedIndex = 1;
				goto L_0311;
				
			L_02CF:
				
				{
				}
				if (theDataTable.Rows[0]["empPosition"].ToString () != "Y T?")
				{
					goto L_0305;
				}
				this.cbChucVu.SelectedIndex = 2;
				goto L_0311;
				
			L_0305:
				
				{
				}
				this.cbChucVu.SelectedIndex = 3;
				
			L_0311:
				
				{
				}
				this.btThem.Enabled = true;
				theSqlDataAdapter.Dispose ();
				theSqlConnection.Close ();
				
			L_032A:
				return;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				this.flag = 0;
				if (! disposing)
				{
					goto L_001D;
				}
				if (this.components == null)
				{
					goto L_001D;
				}
				this.components.Dispose ();
				
			L_001D:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void dtpBirthDay_Leave (object sender, EventArgs e)
			
			{
				int i;
				DateTime theDateTime;
				DateTime theDateTime2;
				this.dtpBirthDay.CustomFormat = "MM/dd/yyyy";
				this.tbAge.Text = (i = (Convert.ToInt32 ((theDateTime2 = DateTime.Now).Year) - Convert.ToInt32 ((theDateTime = DateTime.Parse (this.dtpBirthDay.Text)).Year))).ToString ();
				this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
				return;
			}
			
			private void frmCapNhatNhanVien_Load (object sender, EventArgs e)
			
			{
				SqlConnection theSqlConnection;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				ArrayList theArrayList;
				int i;
				string theString;
				string[] theStringArray;
				char[] theCharArray;
				int i2;
				string[] theStringArray2;
				theSqlConnection = new SqlConnection (this.connStr);
				theSqlDataAdapter = new SqlDataAdapter ("SELECT * FROM Employees", theSqlConnection);
				theDataSet = new DataSet ();
				int i3 = theSqlDataAdapter.Fill (theDataSet, "Employees");
				if ((theDataSet != null) && ((theDataSet.Tables.Count != 0) && (theDataSet.Tables[0].Rows.Count != 0)))
				{
					goto L_0077;
				}
				
			L_0053:
				
				{
				}
				DialogResult theDialogResult = MessageBox.Show ("Hi?n t?i ch?a c? nh?n vi?n n?o t?n t?i!\nVui l?ng nh?p nh?n vi?n m?i.", "Kh?ng t?m th?y nh?n vi?n", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.dataGrid1.Enabled = false;
				goto L_0206;
				
			L_0077:
				
				{
				}
				this.dataGrid1.Enabled = true;
				this.dataGrid1.CaptionText = "Danh S?ch Nh?n Vi?n";
				this.dataGrid1.DataSource = theDataSet;
				this.dataGrid1.SetDataBinding (theDataSet, "Employees");
				this.dataGrid1.TableStyles.Clear ();
				this.loadDataGrid ();
				int i4 = this.dataGrid1.TableStyles.Add (this.TblStyle);
				this.dataGrid1.ReadOnly = true;
				theArrayList = new ArrayList ();
				i = 0;
				goto L_01E9;
				
			L_00F7:
				
				{
				}
				theCharArray = new char[1];
				theCharArray[0] = '\u002F';
				theStringArray = theDataSet.Tables[0].Rows[i][3].ToString ().Split (theCharArray);
				i2 = 0;
				goto L_014C;
				
			L_0136:
				
				{
				}
				theString = theStringArray[i2];
				int i5 = theArrayList.Add (theString);
				i2++;
				
			L_014C:
				
				{
				}
				if (i2 < theStringArray.Length)
				{
					goto L_0136;
				}
				theStringArray2 = new string[5];
				theStringArray2[0] = theArrayList[1].ToString ();
				theStringArray2[1] = "/";
				theStringArray2[2] = theArrayList[0].ToString ();
				theStringArray2[3] = "/";
				theStringArray2[4] = theArrayList[2].ToString ().Remove (4, ((int) (theArrayList[2].ToString ().Length - 4)));
				theDataSet.Tables[0].Rows[i][10] = string.Concat (theStringArray2);
				theArrayList.Clear ();
				i++;
				
			L_01E9:
				
				{
				}
				if (i < theDataSet.Tables[0].Rows.Count)
				{
					goto L_00F7;
				}
				
			L_0206:
				return;
			}
			
			private void InitializeComponent ()
			
			{
				ResourceManager theResourceManager;
				Control[] theControlArray;
				object[] theObjectArray;
				Control[] theControlArray2;
				Control[] theControlArray3;
				theResourceManager = new ResourceManager (typeof (frmCapNhatNhanVien));
				this.btThoat = new Button ();
				this.btThem = new Button ();
				this.tbDiDong = new TextBox ();
				this.label11 = new Label ();
				this.tbChuyenMon = new TextBox ();
				this.label10 = new Label ();
				this.label9 = new Label ();
				this.dtpBirthDay = new DateTimePicker ();
				this.rbMale = new RadioButton ();
				this.tbPhone = new TextBox ();
				this.tbAddress = new TextBox ();
				this.tbAge = new TextBox ();
				this.tbFullName = new TextBox ();
				this.label6 = new Label ();
				this.label5 = new Label ();
				this.label4 = new Label ();
				this.label3 = new Label ();
				this.label2 = new Label ();
				this.label7 = new Label ();
				this.label8 = new Label ();
				this.rbFemale = new RadioButton ();
				this.label1 = new Label ();
				this.tbEmail = new TextBox ();
				this.label12 = new Label ();
				this.dataGrid1 = new DataGrid ();
				this.label13 = new Label ();
				this.rbID = new RadioButton ();
				this.rbFullName = new RadioButton ();
				this.label14 = new Label ();
				this.tbKeySearch = new TextBox ();
				this.label15 = new Label ();
				this.button1 = new Button ();
				this.groupBox1 = new GroupBox ();
				this.tbID = new TextBox ();
				this.cbChucVu = new ComboBox ();
				this.groupBox2 = new GroupBox ();
				this.rbAll = new RadioButton ();
				this.dataGrid2 = new DataGrid ();
				((ISupportInitialize) this.dataGrid1).BeginInit ();
				this.groupBox1.SuspendLayout ();
				this.groupBox2.SuspendLayout ();
				((ISupportInitialize) this.dataGrid2).BeginInit ();
				base.SuspendLayout ();
				this.btThoat.FlatStyle = FlatStyle.Popup;
				this.btThoat.Location = new Point (104, 16);
				this.btThoat.Name = "btThoat";
				this.btThoat.Size = new System.Drawing.Size (80, 23);
				this.btThoat.TabIndex = 12;
				this.btThoat.Text = "Tho?t";
				this.btThoat.Click += new EventHandler (this.btThoat_Click);
				this.btThem.Enabled = false;
				this.btThem.FlatStyle = FlatStyle.Popup;
				this.btThem.Location = new Point (8, 16);
				this.btThem.Name = "btThem";
				this.btThem.Size = new System.Drawing.Size (88, 23);
				this.btThem.TabIndex = 11;
				this.btThem.Text = "C?p nh?t";
				this.btThem.Click += new EventHandler (this.btThem_Click);
				this.tbDiDong.BorderStyle = BorderStyle.FixedSingle;
				this.tbDiDong.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbDiDong.Location = new Point (376, 136);
				this.tbDiDong.MaxLength = 10;
				this.tbDiDong.Name = "tbDiDong";
				this.tbDiDong.Size = new System.Drawing.Size (128, 22);
				this.tbDiDong.TabIndex = 9;
				this.tbDiDong.Text = "";
				this.tbDiDong.KeyPress += new KeyPressEventHandler (this.tbDiDong_KeyPress);
				this.label11.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label11.ForeColor = SystemColors.ControlText;
				this.label11.Location = new Point (312, 136);
				this.label11.Name = "label11";
				this.label11.Size = new System.Drawing.Size (80, 23);
				this.label11.TabIndex = 60;
				this.label11.Text = "Di ??ng:";
				this.tbChuyenMon.BorderStyle = BorderStyle.FixedSingle;
				this.tbChuyenMon.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbChuyenMon.Location = new Point (176, 112);
				this.tbChuyenMon.Name = "tbChuyenMon";
				this.tbChuyenMon.Size = new System.Drawing.Size (128, 22);
				this.tbChuyenMon.TabIndex = 6;
				this.tbChuyenMon.Text = "";
				this.label10.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label10.ForeColor = SystemColors.ControlText;
				this.label10.Location = new Point (88, 112);
				this.label10.Name = "label10";
				this.label10.Size = new System.Drawing.Size (104, 23);
				this.label10.TabIndex = 58;
				this.label10.Text = "Chuy?n m?n:";
				this.label9.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label9.ForeColor = SystemColors.ControlText;
				this.label9.Location = new Point (552, 88);
				this.label9.Name = "label9";
				this.label9.Size = new System.Drawing.Size (80, 23);
				this.label9.TabIndex = 56;
				this.label9.Text = "Ch?c v?:";
				this.dtpBirthDay.CustomFormat = "dd/MM/yyyy";
				this.dtpBirthDay.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.dtpBirthDay.Format = DateTimePickerFormat.Custom;
				this.dtpBirthDay.Location = new Point (632, 64);
				this.dtpBirthDay.Name = "dtpBirthDay";
				this.dtpBirthDay.Size = new System.Drawing.Size (120, 22);
				this.dtpBirthDay.TabIndex = 2;
				this.dtpBirthDay.Leave += new EventHandler (this.dtpBirthDay_Leave);
				this.rbMale.Checked = true;
				this.rbMale.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.rbMale.ForeColor = SystemColors.ControlText;
				this.rbMale.Location = new Point (400, 88);
				this.rbMale.Name = "rbMale";
				this.rbMale.Size = new System.Drawing.Size (56, 24);
				this.rbMale.TabIndex = 3;
				this.rbMale.TabStop = true;
				this.rbMale.Text = "Nam";
				this.tbPhone.BorderStyle = BorderStyle.FixedSingle;
				this.tbPhone.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbPhone.Location = new Point (176, 136);
				this.tbPhone.MaxLength = 10;
				this.tbPhone.Name = "tbPhone";
				this.tbPhone.Size = new System.Drawing.Size (128, 22);
				this.tbPhone.TabIndex = 8;
				this.tbPhone.Text = "";
				this.tbPhone.KeyPress += new KeyPressEventHandler (this.tbPhone_KeyPress);
				this.tbAddress.BorderStyle = BorderStyle.FixedSingle;
				this.tbAddress.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbAddress.Location = new Point (376, 112);
				this.tbAddress.Name = "tbAddress";
				this.tbAddress.Size = new System.Drawing.Size (376, 22);
				this.tbAddress.TabIndex = 7;
				this.tbAddress.Text = "";
				this.tbAge.BorderStyle = BorderStyle.FixedSingle;
				this.tbAge.Enabled = false;
				this.tbAge.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbAge.Location = new Point (176, 88);
				this.tbAge.Name = "tbAge";
				this.tbAge.Size = new System.Drawing.Size (40, 22);
				this.tbAge.TabIndex = 49;
				this.tbAge.Text = "";
				this.tbFullName.BorderStyle = BorderStyle.FixedSingle;
				this.tbFullName.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbFullName.Location = new Point (400, 64);
				this.tbFullName.Name = "tbFullName";
				this.tbFullName.Size = new System.Drawing.Size (144, 22);
				this.tbFullName.TabIndex = 1;
				this.tbFullName.Text = "";
				this.label6.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label6.ForeColor = SystemColors.ControlText;
				this.label6.Location = new Point (88, 136);
				this.label6.Name = "label6";
				this.label6.Size = new System.Drawing.Size (80, 23);
				this.label6.TabIndex = 46;
				this.label6.Text = "?i?n tho?i:";
				this.label5.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label5.ForeColor = SystemColors.ControlText;
				this.label5.Location = new Point (312, 112);
				this.label5.Name = "label5";
				this.label5.Size = new System.Drawing.Size (64, 23);
				this.label5.TabIndex = 45;
				this.label5.Text = "??a ch?:";
				this.label4.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label4.ForeColor = SystemColors.ControlText;
				this.label4.Location = new Point (88, 88);
				this.label4.Name = "label4";
				this.label4.Size = new System.Drawing.Size (48, 23);
				this.label4.TabIndex = 44;
				this.label4.Text = "Tu?i:";
				this.label3.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label3.ForeColor = SystemColors.ControlText;
				this.label3.Location = new Point (552, 64);
				this.label3.Name = "label3";
				this.label3.Size = new System.Drawing.Size (80, 23);
				this.label3.TabIndex = 43;
				this.label3.Text = "Ng?y sinh:";
				this.label2.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label2.ForeColor = SystemColors.ControlText;
				this.label2.Location = new Point (312, 64);
				this.label2.Name = "label2";
				this.label2.Size = new System.Drawing.Size (80, 23);
				this.label2.TabIndex = 42;
				this.label2.Text = "H? v? T?n:";
				this.label7.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label7.ForeColor = SystemColors.ControlText;
				this.label7.Location = new Point (88, 64);
				this.label7.Name = "label7";
				this.label7.Size = new System.Drawing.Size (56, 23);
				this.label7.TabIndex = 41;
				this.label7.Text = "S? ID:";
				this.label8.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label8.ForeColor = SystemColors.ControlText;
				this.label8.Location = new Point (312, 88);
				this.label8.Name = "label8";
				this.label8.Size = new System.Drawing.Size (40, 24);
				this.label8.TabIndex = 54;
				this.label8.Text = "Ph?i:";
				this.rbFemale.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.rbFemale.ForeColor = SystemColors.ControlText;
				this.rbFemale.Location = new Point (456, 88);
				this.rbFemale.Name = "rbFemale";
				this.rbFemale.Size = new System.Drawing.Size (48, 24);
				this.rbFemale.TabIndex = 4;
				this.rbFemale.Text = "N?";
				this.label1.Font = new System.Drawing.Font ("Verdana", 12F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label1.ForeColor = Color.Blue;
				this.label1.Location = new Point (320, 16);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size (208, 23);
				this.label1.TabIndex = 40;
				this.label1.Text = "Danh S?ch Nh?n Vi?n";
				this.tbEmail.BorderStyle = BorderStyle.FixedSingle;
				this.tbEmail.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbEmail.Location = new Point (568, 136);
				this.tbEmail.Name = "tbEmail";
				this.tbEmail.Size = new System.Drawing.Size (184, 22);
				this.tbEmail.TabIndex = 10;
				this.tbEmail.Text = "";
				this.label12.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label12.ForeColor = SystemColors.ControlText;
				this.label12.Location = new Point (512, 136);
				this.label12.Name = "label12";
				this.label12.Size = new System.Drawing.Size (56, 23);
				this.label12.TabIndex = 66;
				this.label12.Text = "E-Mail:";
				this.dataGrid1.BackgroundColor = SystemColors.ActiveCaptionText;
				this.dataGrid1.CaptionVisible = false;
				this.dataGrid1.DataMember = "";
				this.dataGrid1.HeaderForeColor = SystemColors.ControlText;
				this.dataGrid1.Location = new Point (16, 248);
				this.dataGrid1.Name = "dataGrid1";
				this.dataGrid1.Size = new System.Drawing.Size (832, 344);
				this.dataGrid1.TabIndex = 67;
				this.dataGrid1.MouseUp += new MouseEventHandler (this.dataGrid1_MouseUp);
				this.label13.Font = new System.Drawing.Font ("Verdana", 9F, (FontStyle.Bold | FontStyle.Underline), GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label13.ForeColor = Color.MediumBlue;
				this.label13.Location = new Point (48, 160);
				this.label13.Name = "label13";
				this.label13.Size = new System.Drawing.Size (120, 23);
				this.label13.TabIndex = 68;
				this.label13.Text = "T?m Nh?n Vi?n:";
				this.rbID.Checked = true;
				this.rbID.Location = new Point (16, 16);
				this.rbID.Name = "rbID";
				this.rbID.TabIndex = 71;
				this.rbID.TabStop = true;
				this.rbID.Text = "S? ID";
				this.rbFullName.Location = new Point (88, 16);
				this.rbFullName.Name = "rbFullName";
				this.rbFullName.Size = new System.Drawing.Size (96, 24);
				this.rbFullName.TabIndex = 72;
				this.rbFullName.Text = "H? v? T?n";
				this.label14.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label14.Location = new Point (104, 216);
				this.label14.Name = "label14";
				this.label14.TabIndex = 73;
				this.label14.Text = "T? kho?:";
				this.tbKeySearch.BorderStyle = BorderStyle.FixedSingle;
				this.tbKeySearch.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbKeySearch.Location = new Point (176, 216);
				this.tbKeySearch.Name = "tbKeySearch";
				this.tbKeySearch.Size = new System.Drawing.Size (176, 22);
				this.tbKeySearch.TabIndex = 74;
				this.tbKeySearch.Text = "";
				this.tbKeySearch.KeyPress += new KeyPressEventHandler (this.tbKeySearch_KeyPress);
				this.label15.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label15.Location = new Point (104, 176);
				this.label15.Name = "label15";
				this.label15.Size = new System.Drawing.Size (80, 23);
				this.label15.TabIndex = 75;
				this.label15.Text = "T?m Theo:";
				this.button1.FlatStyle = FlatStyle.Popup;
				this.button1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.button1.Location = new Point (365, 216);
				this.button1.Name = "button1";
				this.button1.TabIndex = 76;
				this.button1.Text = "T?m";
				this.button1.Click += new EventHandler (this.button1_Click);
				theControlArray = new Control[2];
				theControlArray[0] = ((Control) this.btThem);
				theControlArray[1] = ((Control) this.btThoat);
				this.groupBox1.Controls.AddRange (theControlArray);
				this.groupBox1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox1.Location = new Point (560, 160);
				this.groupBox1.Name = "groupBox1";
				this.groupBox1.Size = new System.Drawing.Size (192, 48);
				this.groupBox1.TabIndex = 77;
				this.groupBox1.TabStop = false;
				this.tbID.BorderStyle = BorderStyle.FixedSingle;
				this.tbID.Enabled = false;
				this.tbID.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.tbID.Location = new Point (176, 64);
				this.tbID.Name = "tbID";
				this.tbID.TabIndex = 78;
				this.tbID.Text = "";
				this.cbChucVu.DropDownStyle = ComboBoxStyle.DropDownList;
				this.cbChucVu.DropDownWidth = 130;
				this.cbChucVu.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.cbChucVu.ItemHeight = 14;
				theObjectArray = new object[4];
				theObjectArray[0] = "Tr??ng Ph?ng Kh?m";
				theObjectArray[1] = "B?c S?";
				theObjectArray[2] = "Y T?";
				theObjectArray[3] = "D??c S?";
				this.cbChucVu.Items.AddRange (theObjectArray);
				this.cbChucVu.Location = new Point (632, 88);
				this.cbChucVu.Name = "cbChucVu";
				this.cbChucVu.TabIndex = 5;
				theControlArray2 = new Control[3];
				theControlArray2[0] = ((Control) this.rbAll);
				theControlArray2[1] = ((Control) this.rbFullName);
				theControlArray2[2] = ((Control) this.rbID);
				this.groupBox2.Controls.AddRange (theControlArray2);
				this.groupBox2.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox2.Location = new Point (176, 160);
				this.groupBox2.Name = "groupBox2";
				this.groupBox2.Size = new System.Drawing.Size (264, 48);
				this.groupBox2.TabIndex = 79;
				this.groupBox2.TabStop = false;
				this.rbAll.Location = new Point (192, 16);
				this.rbAll.Name = "rbAll";
				this.rbAll.Size = new System.Drawing.Size (64, 24);
				this.rbAll.TabIndex = 73;
				this.rbAll.Text = "T?t c?";
				this.dataGrid2.BackgroundColor = SystemColors.ActiveCaptionText;
				this.dataGrid2.CaptionVisible = false;
				this.dataGrid2.DataMember = "";
				this.dataGrid2.HeaderForeColor = SystemColors.ControlText;
				this.dataGrid2.Location = new Point (16, 248);
				this.dataGrid2.Name = "dataGrid2";
				this.dataGrid2.Size = new System.Drawing.Size (832, 344);
				this.dataGrid2.TabIndex = 83;
				this.dataGrid2.Visible = false;
				this.dataGrid2.MouseUp += new MouseEventHandler (this.dataGrid2_MouseUp);
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 16);
				base.ClientSize = new System.Drawing.Size (862, 605);
				theControlArray3 = new Control[33];
				theControlArray3[0] = ((Control) this.tbKeySearch);
				theControlArray3[1] = ((Control) this.dataGrid2);
				theControlArray3[2] = ((Control) this.groupBox2);
				theControlArray3[3] = ((Control) this.tbID);
				theControlArray3[4] = ((Control) this.button1);
				theControlArray3[5] = ((Control) this.label15);
				theControlArray3[6] = ((Control) this.label14);
				theControlArray3[7] = ((Control) this.dataGrid1);
				theControlArray3[8] = ((Control) this.tbEmail);
				theControlArray3[9] = ((Control) this.label12);
				theControlArray3[10] = ((Control) this.cbChucVu);
				theControlArray3[11] = ((Control) this.tbDiDong);
				theControlArray3[12] = ((Control) this.label11);
				theControlArray3[13] = ((Control) this.tbChuyenMon);
				theControlArray3[14] = ((Control) this.label10);
				theControlArray3[15] = ((Control) this.label9);
				theControlArray3[16] = ((Control) this.dtpBirthDay);
				theControlArray3[17] = ((Control) this.rbMale);
				theControlArray3[18] = ((Control) this.tbPhone);
				theControlArray3[19] = ((Control) this.tbAddress);
				theControlArray3[20] = ((Control) this.tbAge);
				theControlArray3[21] = ((Control) this.tbFullName);
				theControlArray3[22] = ((Control) this.label6);
				theControlArray3[23] = ((Control) this.label5);
				theControlArray3[24] = ((Control) this.label4);
				theControlArray3[25] = ((Control) this.label3);
				theControlArray3[26] = ((Control) this.label2);
				theControlArray3[27] = ((Control) this.label7);
				theControlArray3[28] = ((Control) this.label8);
				theControlArray3[29] = ((Control) this.rbFemale);
				theControlArray3[30] = ((Control) this.label1);
				theControlArray3[31] = ((Control) this.groupBox1);
				theControlArray3[32] = ((Control) this.label13);
				base.Controls.AddRange (theControlArray3);
				this.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.Icon = ((System.Drawing.Icon) theResourceManager.GetObject ("$this.Icon"));
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.Name = "frmCapNhatNhanVien";
				base.StartPosition = FormStartPosition.CenterScreen;
				this.Text = "C?p Nh?t Nh?n Vi?n";
				base.Load += new EventHandler (this.frmCapNhatNhanVien_Load);
				((ISupportInitialize) this.dataGrid1).EndInit ();
				this.groupBox1.ResumeLayout (false);
				this.groupBox2.ResumeLayout (false);
				((ISupportInitialize) this.dataGrid2).EndInit ();
				base.ResumeLayout (false);
				return;
			}
			
			private bool IsNumber (string Number)
			
			{
				bool theBoolean;
				
			L_0000:
				try
				{
					long theLong = long.Parse (Number);
					theBoolean = true;
				}
				catch
				{
					
				L_000B:
					
					{
					}
					theBoolean = false;
				}
				
			L_0010:
				
				{
				}
				return theBoolean;
			}
			
			public void loadDataGrid ()
			
			{
				DataGridTextBoxColumn theDataGridTextBoxColumn;
				DataGridTextBoxColumn theDataGridTextBoxColumn2;
				DataGridTextBoxColumn theDataGridTextBoxColumn3;
				DataGridTextBoxColumn theDataGridTextBoxColumn4;
				DataGridTextBoxColumn theDataGridTextBoxColumn5;
				DataGridTextBoxColumn theDataGridTextBoxColumn6;
				DataGridTextBoxColumn theDataGridTextBoxColumn7;
				DataGridTextBoxColumn theDataGridTextBoxColumn8;
				DataGridTextBoxColumn theDataGridTextBoxColumn9;
				this.TblStyle = new DataGridTableStyle ();
				this.TblStyle.MappingName = "Employees";
				this.TblStyle.RowHeaderWidth = 40;
				this.TblStyle.AlternatingBackColor = Color.AliceBlue;
				this.TblStyle.HeaderForeColor = Color.Maroon;
				this.TblStyle.GridLineColor = Color.CornflowerBlue;
				this.TblStyle.AllowSorting = false;
				theDataGridTextBoxColumn = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn.MappingName = "empID";
				theDataGridTextBoxColumn.HeaderText = "S? ID";
				theDataGridTextBoxColumn.Width = 60;
				theDataGridTextBoxColumn.NullText = string.Empty;
				int i = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn));
				theDataGridTextBoxColumn2 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn2.MappingName = "empName";
				theDataGridTextBoxColumn2.HeaderText = "H? T?n";
				theDataGridTextBoxColumn2.Width = 150;
				theDataGridTextBoxColumn2.NullText = string.Empty;
				int i2 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn2));
				theDataGridTextBoxColumn3 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn3.MappingName = "empBirthDate";
				theDataGridTextBoxColumn3.HeaderText = "Ng?y Sinh";
				theDataGridTextBoxColumn3.Width = 0;
				theDataGridTextBoxColumn3.NullText = string.Empty;
				int i3 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn3));
				theDataGridTextBoxColumn4 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn4.MappingName = "empMobile";
				theDataGridTextBoxColumn4.HeaderText = "Ng?y Sinh";
				theDataGridTextBoxColumn4.Width = 80;
				theDataGridTextBoxColumn4.NullText = string.Empty;
				int i4 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn4));
				theDataGridTextBoxColumn5 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn5.MappingName = "empPosition";
				theDataGridTextBoxColumn5.HeaderText = "Lo?i Nh?n Vi?n";
				theDataGridTextBoxColumn5.Width = 130;
				theDataGridTextBoxColumn5.NullText = string.Empty;
				int i5 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn5));
				theDataGridTextBoxColumn6 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn6.MappingName = "empSpecialize";
				theDataGridTextBoxColumn6.HeaderText = "Chuy?n M?n";
				theDataGridTextBoxColumn6.Width = 130;
				theDataGridTextBoxColumn6.NullText = string.Empty;
				int i6 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn6));
				theDataGridTextBoxColumn7 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn7.MappingName = "empAddress";
				theDataGridTextBoxColumn7.HeaderText = "??a ch?";
				theDataGridTextBoxColumn7.Width = 180;
				theDataGridTextBoxColumn7.NullText = string.Empty;
				int i7 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn7));
				theDataGridTextBoxColumn8 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn8.MappingName = "empTel";
				theDataGridTextBoxColumn8.HeaderText = "?i?n Tho?i";
				theDataGridTextBoxColumn8.Width = 80;
				theDataGridTextBoxColumn8.NullText = string.Empty;
				int i8 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn8));
				theDataGridTextBoxColumn9 = new DataGridTextBoxColumn ();
				theDataGridTextBoxColumn9.MappingName = "empEmail";
				theDataGridTextBoxColumn9.HeaderText = "E-Mail";
				theDataGridTextBoxColumn9.Width = 180;
				theDataGridTextBoxColumn9.NullText = string.Empty;
				int i9 = this.TblStyle.GridColumnStyles.Add (((DataGridColumnStyle) theDataGridTextBoxColumn9));
				return;
			}
			
			private void tbDiDong_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (char.IsNumber (e.KeyChar))
				{
					goto L_001D;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_001D;
				}
				e.Handled = true;
				
			L_001D:
				return;
			}
			
			private void tbKeySearch_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (e.KeyChar != '\r')
				{
					goto L_0012;
				}
				this.button1_Click (sender, ((EventArgs) e));
				
			L_0012:
				return;
			}
			
			private void tbPhone_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (char.IsNumber (e.KeyChar))
				{
					goto L_001D;
				}
				if (e.KeyChar == '\u0008')
				{
					goto L_001D;
				}
				e.Handled = true;
				
			L_001D:
				return;
			}
			
		#endregion
	}
	
}

